package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "MallAppSettingModel", description = "小程序app界面设置")
@Data
@TableName(value = "APP_SETTING", autoResultMap = true)
public class MallAppSettingModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="名称")
    private String name;

    @ApiModelProperty(value="链接")
    private String link;

    @ApiModelProperty(value="图标")
    private String icon;

    /**
     * {@link com.mallcloud.mall.common.core.constant.enums.mall.AppSettingEnum}
     */
    @ApiModelProperty(value="类型 字典:app_setting_type")
    private String type;

    @ApiModelProperty(value="状态 0-开启 1-禁用")
    private Boolean status;

    @ApiModelProperty(value="排序")
    private Integer sortOrder;

    @ApiModelProperty(value="活动开始时间")
    private Date activityStartTime;

    @ApiModelProperty(value="活动结束时间")
    private Date activityEndTime;

}
